
<%--
  Created by IntelliJ IDEA.
  User: Administrator
  Date: 2022/4/1
  Time: 15:29
  To change this template use File | Settings | File Templates.
--%>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
    <title>博客后台-留言管理</title>
    <meta http-equiv="Content-Language" content="zh-cn">
    <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
    <link href="${pageContext.request.contextPath}/admin/css/Style.css" rel="stylesheet" type="text/css" />
    <script language="javascript" src="${pageContext.request.contextPath}/admin/js/public.js"></script>
    <script type="text/javascript">
        //删除留言
        function o_del() {
            var msg = "您确定要删除该条留言吗？";
            if (confirm(msg)==true){
                return true;
            }else{
                return false;
            }
        }
    </script>
</head>
<body>
<jsp:include page="/admin/login/top.jsp"/>
<div class="main">
    <jsp:include page="/admin/login/left.jsp"/>
    <div class="home">
<br />
<form id="Form1" name="Form1" action="${pageContext.request.contextPath}/findOrderByManyCondition" method="post">
    <table cellSpacing="1" cellPadding="0" width="100%" align="center" bgColor="#f5fafe" border="0">
        <TBODY>
        <tr>
            <td class="ta_01" align="center" bgColor="#f5fafe">
                <strong>留 言 列 表</strong>
            </td>
        </tr>
        <tr>
            <td class="ta_01" align="right"></td>
        </tr>
        <tr>
            <td class="ta_01" align="center" bgColor="#f5fafe">
                <table cellspacing="0" cellpadding="1" rules="all"
                       bordercolor="gray" border="1" id="DataGrid1"
                       style="BORDER-RIGHT: gray 1px solid; BORDER-TOP: gray 1px solid; BORDER-LEFT: gray 1px solid; WIDTH: 100%; WORD-BREAK: break-all; BORDER-BOTTOM: gray 1px solid; BORDER-COLLAPSE: collapse; BACKGROUND-COLOR: #f5fafe; WORD-WRAP: break-word">
                    <tr style="FONT-WEIGHT: bold; FONT-SIZE: 12pt; HEIGHT: 25px; BACKGROUND-COLOR: #CEADE2">
                       <%-- <td align="center" width="10%">留言编号</td>--%>
                        <td align="center" width="20%">留言时间</td>
                        <td width="10%" align="center">留言用户</td>
                        <td width="25%" align="center">留言内容</td>
<%--                        <td width="10%" align="center">审核结果</td>--%>
                        <td width="10%" align="center">查看</td>
                        <td width="10%" align="center">删除</td>
                    </tr>
                    <c:forEach items="${ListWord}" var="LW">
                        <tr onmouseover="this.style.backgroundColor = 'white'"
                            onmouseout="this.style.backgroundColor = '#F5FAFE';">
                            <%--<td style="CURSOR: hand; HEIGHT: 22px" align="center" width="20%">${LW.id}</td>--%>
                            <td style="CURSOR: hand; HEIGHT: 22px" align="center" width="15%">${LW.pubtime }</td>
                            <td width="8%" align="center">${LW.author}</td>
                            <td width="10%" align="center">${LW.content}</td>
                            <td align="center" style="HEIGHT: 22px">
                                <a href="${pageContext.request.contextPath}/findWordById?id=${LW.id}&type=admin">
                                    <img width="16px" src="${pageContext.request.contextPath}/admin/images/button_view.gif" border="0" style="CURSOR: hand">
                                </a>
                            </td>
                            <td align="center" style="HEIGHT: 22px">
<%--                                <c:if test="${LW.state!=0 }">--%>
                                    <a href="${pageContext.request.contextPath}/DeleteWords?id=${LW.id}&type=admin" onclick="javascript:return o_del()">
                                        <img src="${pageContext.request.contextPath}/admin/images/i_del.gif" width="16" height="16" border="0" style="CURSOR: hand">
                                    </a>
<%--                                </c:if>--%>
                            </td>
                        </tr>
                    </c:forEach>
                </table>
            </td>
        </tr>
        </TBODY>
    </table>
</form>
    </div>
</div>
</body>
<jsp:include page="/admin/login/bottom.jsp"/>
</html>
